/**
 * 
 */
package com.jjt.kiki.controller;

import java.util.Date;
import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.jjt.kiki.bean.TbRes;
import com.jjt.kiki.service.ResService;

/**
 * @author jjtEatJava
 *
 */
@Controller
public class Test {
	@Autowired
	ResService resService;
	@RequestMapping("/test")
	public String test() {
		TbRes res = new TbRes();
		res.setResCralwerDate(new Date());
		res.setResId(UUID.randomUUID().toString());
		res.setResShareDate(new Date());
		res.setResTitle("123");
		res.setResUrl("123");
		res.setResUserUk("123");
		resService.save(res);
		System.out.println("123");
		return "/123";
	}
}
